import App from './App'
// vuex
import store from './store'
import VChart from "./utils/echarts"

import VConsole from 'vconsole'
new VConsole()

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import Vant from 'vant';
import 'vant/lib/index.css';
import './assets/base.css'
import './uni.scss';
import 'leaflet/dist/leaflet.css';
import "./assets/iconfont/iconfont.css"
export function createApp() {
	const app = createSSRApp(App)
	app.use(store);
	app.use(Vant);
	app.component('v-chart', VChart)
	return {
		app
	}
}
// #endif